home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / telecom / 189 / demos / stringar.doc < prev    next >
Encoding:
Text File  |  1987-10-13  |  2.4 KB  |  52 lines

  1.                                Stringart
  2.  
  3. Stringart is a prime example of how something profoundly simple can
  4. also be profoundly beautiful.
  5.  
  6. Each half of the two coordinate pairs of a series of lines is determined
  7. by a different function, chosen at random from a set of thirteen.  Twelve
  8. of the functions are sinusoidal, and the thirteenth is linear.  The
  9. sinusoidal functions differ in phase and/or period.  Depending upon
  10. the particular combinations chosen, the resulting figure may be
  11. symmetrical or asymmetrical.  Symetrical figures result when at least
  12. two of the coordinate halves' functions share the same period.
  13.  
  14. The color used for a figure is also randomly determined, with a floor
  15. value used to avoid near-black-on-black figures.
  16.  
  17. The program accepts the following keystrokes during execution:
  18.  
  19. P or p - Pause.  Holds the current figure on the screen awaiting another
  20.          keypress.
  21.  
  22. S or s - Save.  Brings up a dialogue box for filename selection.  The
  23.          current screen image is saved to disk as an uncompressed DEGAS
  24.          picture at the resolution in effect when the program was started
  25.          (low or medium).  The program has NOT been tested with a
  26.          monochrome monitor, so I cannot predict what your results would
  27.          be.  If you have one, let me know what you find.  After a save,
  28.          the next figure is immediately drawn.
  29.  
  30. Undo   - Exit Stringart and return to the desktop.
  31.  
  32. Any other key causes Stringart to immediately draw the next figure in
  33. the series.  When no keypress is detected within approximately five
  34. seconds after completing a design, the screen is cleared and the next is
  35. drawn automatically.
  36.  
  37. The algorithm is taken from a demonstration program written by Sun
  38. Microsystems.  The code, written in Mark Williams C, is a complete
  39. re-write for the Atari.  In addition to the obvious changes required for
  40. TOS, the program does not have the function data precomputed and loaded
  41. with the program; rather, it computes each function on-the-fly.  This
  42. results in a considerably slower drawing rate than the Sun demo, but I
  43. feel that watching the designs being drawn provides at least half the
  44. fascination that this program holds.  I hope you like it, too.
  45.  
  46. This program is made available for your personal enjoyment, and for that
  47. of the people to whom you demonstrate it, but it is not to be sold or
  48. otherwise used for commercial purposes.
  49.  
  50.       Regards,
  51.       Greg Wageman
  52.